﻿//-----------------------------------------------------------------------
// <copyright>
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using Fulcrum.ControlGenerator;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Fulcrum.UnitTests.ControlGenerator
{
    [DeploymentItem("ControlGenerator.t4")]
    [DeploymentItem("ControlGeneratorConfig.WPF.xml")]
    [DeploymentItem("AControl.Generated.cs")]
    [DeploymentItem("AnotherControl.Generated.cs")]
    [DeploymentItem("ThirdControl.Generated.cs")]
    [TestClass]
    public class ControlGeneratorWpfGeneratedCodeTests : FulcrumGeneratedCodeTests
    {
        public ControlGeneratorWpfGeneratedCodeTests()
        {
            // nothing
        }

        [TestMethod]
        public void ValidateDifferentInGeneratedCode()
        {
            ValidateGeneratedCode();
        }

        protected override GenerationUnit CreateGenerationUnit(string path)
        {
            var genUnit = new ControlGeneratorGenerationUnit();
            var settings = (ControlGeneratorSettings)genUnit.Settings;

            settings.ConfigFileName = "ControlGeneratorConfig.WPF.xml";

            return genUnit;
        }

    }
}
